import http from '@/utils/http'

interface BasicParams {
  cstId:string
	export: boolean
	fromDate:string
	fromEqId: string // 格式：yyyyMMddHHmmss transferJobId为空时，必传
	includeLocationChange: boolean
	jobCreator: string
	reload: boolean
	shopId: string
	toDate:string // 格式：yyyyMMddHHmmss transferJobId为空时，必传
	toEqId: string
	toPortTransferCount: string
	transferCount:string
	transferJobId:string
}
export function getEqpId({ shopId }: { shopId: string }): Promise<any> {
  const data = {
    shopId
  }
  return http.request({
    url: '/ims-tworkgz-service/viewTransferJobHistory/getEqpId',
    method: 'POST',
    params: data
  })
}
export function getJobHistory(data:BasicParams): Promise<any> {
  return http.request({
    url: '/ims-tworkgz-service/viewTransferJobHistory/getJobHistory',
    method: 'POST',
    data
  })
}
